package com.cmc.cloud.cmclink.doc.vo.partner;

import com.cmes.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;

import java.time.LocalDate;
import java.time.LocalDateTime;

import static com.cmes.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY;

/**
 * 合作方维护SI列表查询请求参数
 *
 * @author heguo
 */
@Data
public class PartnerSiMaintenancePageReqVO extends PageParam {

    @NotBlank(message = "港口代码不可为空")
    @Schema(description = "港口代码")
    private String portCode;
    @Schema(description = "船名代码")
    private String vesselCode;
    @Schema(description = "航次")
    private String voyage;
    @Schema(description = "提单号")
    private String blNo;
    @Schema(description = "箱号")
    private String cntrNo;
    @Schema(description = "舱位代码")
    private String spaceOwner;
    @Schema(description = "开始时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    private LocalDate startTime;
    @Schema(description = "结束时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    private LocalDate endTime;

}
